<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0;}
        .container{
            width: 1000px;
            height: 40px;
            background-color: pink;
            margin-left: auto;
            margin-right: auto;
        }
        .container ul{
            list-style: none;
            line-height: 40px;
            text-align: center;
        }
        ul::after{
            content: "";
            display: table;
            clear: both;
        }
        li{
            float: left;
            width: 100px;
        }
        .one:hover{
           cursor: pointer;
           background-color: #eee;
        }
        a{
            text-decoration-line: none;
            color: black;
        }
        .goods{
            background-color: deeppink;
            opacity: 0;
        }
        .one:hover .goods{
            opacity: 1;
        }
    </style>
</head>
<body>
    <div class="container">
        <ul>
            <li class="one">
                收藏夹
                <div class="goods">
                    <a href="#">商品收藏</a><br>
                    <a href="#">商品收藏</a>
                </div>
            </li>
            <li>卖家中心</li>
            <li> 联系客服</li>
        </ul>
    </div>
</body>
</html>